package com.gitee.fmadmin.service.order;

import com.gitee.fastmybatis.core.PageInfo;
import com.gitee.fastmybatis.core.query.LambdaQuery;
import com.gitee.fastmybatis.core.support.LambdaService;
import org.springframework.stereotype.Service;
import com.gitee.fmadmin.dao.entity.OrderInfo;
import com.gitee.fmadmin.dao.mapper.OrderInfoMapper;


/**
 * @author thc
 */
@Service
public class OrderInfoService implements LambdaService<OrderInfo, OrderInfoMapper> {

	public PageInfo<OrderInfo> doPage(LambdaQuery<OrderInfo> query) {
     	query.orderByDesc(OrderInfo::getId);
        PageInfo<OrderInfo> page = this.page(query);

        // 格式转换
        return page.convert(isvInfo -> {
			
            return isvInfo;
        });
    }

									
}